package com.bw.liuyushan.mykotlin_firstmvptest.MVVM

/**
 *MyKotlin_FirstMVPTest
 *file name is : FoodAdapter
 *created by Ender on 2021/9/16 15:40.
 *author : 刘雨杉
 *Describe:练习的MVVM框架半成品
 */
import com.bw.liuyushan.mykotlin_firstmvptest.MVP.Entity.Data
import com.bw.liuyushan.mykotlin_firstmvptest.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import kotlinx.android.synthetic.main.food_layout.view.*

class FoodAdapter(layouId:Int,data:MutableList<Data>) : BaseQuickAdapter<Data,BaseViewHolder>(layouId,data){

    override fun convert(helper: BaseViewHolder, item: Data) {
        helper.setText(R.id.food_title,item.title)
    }

}